//
//  FSHomeTableViewCell.m
//  WZSOA
//
//  Created by 刘沿 on 16/6/15.
//  Copyright © 2016年 刘沿. All rights reserved.
//

#import "FSHomeTableViewCell.h"

@implementation FSHomeTableViewCell

+(instancetype)HomeTableViewCell{

    return [[[NSBundle mainBundle] loadNibNamed:@"FSHomeTableViewCell" owner:nil options:nil] lastObject];

}

-(void)setReceiveModel:(FSReceiveModel *)receiveModel{
    _receiveModel = receiveModel;
    
    self.titleLabel.text = receiveModel.title;
    
    if (receiveModel.time.length != 0 && receiveModel.state.length != 0 && receiveModel.name.length !=0) {
        self.desLabel.text = [NSString stringWithFormat:@"%@/%@/%@",receiveModel.time,receiveModel.state,receiveModel.name];
    }else if(receiveModel.time.length != 0 && receiveModel.state.length == 0 && receiveModel.name.length ==0){
        
        self.desLabel.text = [NSString stringWithFormat:@"%@",receiveModel.time];
    }
    

    
}








@end
